package com.team1.manager.student.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.team1.manager.student.dao.StudentDao;
import com.team1.manager.student.entity.Student;
import com.team1.manager.student.service.StudentService;

@Service("studentService")
public class StudenServiceImpl implements StudentService {
	@Resource
	private StudentDao studentDao;

	@Override
	public void save(Student student) {
		studentDao.save(student);

	}

	@Override
	public void delete(Serializable id) {
		studentDao.delete(id);

	}

	@Override
	public void update(Student student) {
		studentDao.update(student);

	}

	@Override
	public Student findObjectById(Serializable id) {

		return studentDao.findObjectById(id);
	}

	@Override
	public List<Student> findObjects() {

		return studentDao.findObjects();
	}

}
